package com.example.mapper;

import com.example.entity.NationLine;
import org.springframework.data.jpa.repository.JpaRepository;

import java.util.List;

public interface NationLineRepository extends JpaRepository<NationLine, Long> {
    List<NationLine> findByNationClassAndYearBetween(String nationClass, Integer startYear, Integer endYear);

    List<NationLine> findByNationClass(String nationClass);
    List<NationLine> findByNationClassOrderByYearAsc(String nationClass);
}

